void build_random_array(int a[], int size, unsigned int range);

void quicksort(int a[], int left, int right) ;
void quicksort_right_pivot(int a[], int left, int right) ;
void mergesort(int a[], int left, int right) ;

int binary_search(int a[], int n, int key);

void test_counting_sort();